package com.guaika.reggie.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.guaika.reggie.common.ResultMessage;
import com.guaika.reggie.dto.PermissionsDto;
import com.guaika.reggie.entity.Permissions;

import java.util.List;

/**
 * @author GuaiKa
 */
public interface PermissionsService extends IService<Permissions> {
    /**
     * 保存权限
     * @param permissionsDto
     * @return
     */
    ResultMessage<String> savePermissions(PermissionsDto permissionsDto);

    /**
     * 根据员工Id查询权限
     * @param empId
     * @return
     */
    ResultMessage<List<Permissions>> userPermissions(Long empId);
}
